package spring;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * 创建时间：2025-05-09 13:45
 */
@Service
public class RewardService {
    @Autowired
    RewardStrategyContext rewardStrategyContext;

    public void issue(String rewardType) {
        RewardStrategy strategy = rewardStrategyContext.getStrategy(rewardType);
        strategy.issueReward();
        strategy.issueIntegralReward();
    }
}
